import request from '@/utils/request'

// 查询课程班级列表
export function listCourseclass(query) {
  return request({
    url: '/score/courseclass/list',
    method: 'get',
    params: query
  })
}

// 查询课程班级详细
export function getCourseclass(courseclassId) {
  return request({
    url: '/score/courseclass/' + courseclassId,
    method: 'get'
  })
}

// 新增课程班级
export function addCourseclass(data) {
  return request({
    url: '/score/courseclass',
    method: 'post',
    data: data
  })
}

// 修改课程班级
export function updateCourseclass(data) {
  return request({
    url: '/score/courseclass',
    method: 'put',
    data: data
  })
}

// 删除课程班级
export function delCourseclass(courseclassId) {
  return request({
    url: '/score/courseclass/' + courseclassId,
    method: 'delete'
  })
}
